import React from 'react'
import Item from './item'
import './style.less'


class List extends React.Component {
  constructor(props, context) {
    super(props, context);
  }
  render(){
    const data = this.props.data;
    return (
      <div>
        {data.map((item, index) => {
          return <Item key={index} data={item}/>
        })}
      </div>
    );
  }
}

export default List;